﻿<%@ WebHandler Language="C#" Class="deleteTechnician" %>

using System;
using System.Web;

using AMCBO;
using AMCOBJ;

public class deleteTechnician : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        //context.Response.Write("Hello World");
        users obj_user = new users();
        createusers obj_create = new createusers();
        int x;
        if (!string.IsNullOrEmpty(context.Request.QueryString["techid"]))
        {
            obj_user.TechID = new Guid(context.Request.QueryString["techid"]);
            x = obj_create.deleteTechnician(obj_user);
            if (x == 0)
            {
                context.Response.Write("y");
            }
            else
            {
                context.Response.Write("n");
            }
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}